# -*- coding: utf-8 -*-
import code.engine
from django.core.management import execute_manager
import core.settings
import sys,os

code.engine.gencode()
sys.argv = ['','syncdb','-v2','--traceback']
execute_manager(core.settings)
if os.name == 'nt':
    sys.argv = ['','runserver','-v2','--noreload','--traceback']
else:
    sys.argv = ['','runserver','-v2','--noreload','--traceback','10.130.137.151:8888']
execute_manager(core.settings)